package com.liang.service;


import com.liang.pojo.Excuse;
import com.liang.pojo.dto.ExcuseDto;

import java.util.Map;
import java.util.List;
/**
 *@作者:lsk
 *Service接口
 *@Date:2023/10/22
*/
public interface ExcuseService {

	/**
	根据Excuse_id查询
	*/
	public Object selectByExcuse_id(Long excuse_id);

	/**
	根据Excuse_id更新
	*/
	public Integer updateByExcuse_id(Excuse demo);

	/**
	根据Excuse_id删除
	*/
	public Integer deleteByExcuse_id(Long excuse_id);



	/**
	 insert:(插入)
	*/
	public Object insert(Excuse demo);


	/**
	 insertOrUpdate(插入或更新(根据主键或唯一索引更新，主键和唯一索引不会改变))
	*/
	public Integer insertOrUpdate(Excuse demo);


	/**
	 insertBath:(批量插入)
	*/
	public Integer insertBatch(List<Excuse> list);


	/**
	 insertOrUpdateBatch:(批量插入或更新)
	*/
	public Integer insertOrUpdateBatch(List<Excuse> list);


	/**
	 selectList:(根据参数查询集合)
	*/
	public List<Excuse> selectList(Map<String, Object> param);


	/**
	 selectCount:(根据集合查询数量)
	*/
	public Long selectCount(Map<String, Object> param);

	Boolean addExcuse(Excuse excuse);

    Boolean approveExcuse(ExcuseDto excuseDto);

	Boolean deleteExcuse(Long excuseid);

	Map approveExcuseList(ExcuseDto excuseDto);

	Map approvingExcuseList(Long userid);

	Map approvedExcuseList(ExcuseDto excuseDto);

	Map getDeletingExcuseList(ExcuseDto excuseDto);

	Boolean superiorDeleteExcuse(ExcuseDto excuseDto);

	Map willDeleteExcuse(ExcuseDto excuseDto);
}